import http, {newApiPrefix} from "../request";

/**
 * 登录接口
 */
export const requestLogin = (param)=>{
  return http.post(`${newApiPrefix}/user/login`,param)
}

/**
 * 请求注册
 * @param param
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const requestRegister = (param)=>{
  return  http.post(`${newApiPrefix}/user/register`,param)
}

/**
 * 获取用户信息
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const requestGetUserInfo = ()=>{
  return http.get(`${newApiPrefix}/user/info`,{})
}
